package request

type List struct {
	Id int `form:"id" json:"id" binding:"required"`
}

type ThirdOrder struct {
	DDJL_ID               string  `form:"DDJL_ID" json:"DDJL_ID" binding:"required"`
	DDJL_YHBH             string  `form:"DDJL_YHBH" json:"DDJL_YHBH" binding:"required"`       // 订单编号
	DDJL_DWID             string  `form:"DDJL_DWID" json:"DDJL_DWID" binding:"required"`       //单位ID
	DDJL_DWMC             string  `form:"DDJL_DWMC" json:"DDJL_DWMC" binding:"required"`       //单位名称
	DDJL_XMID             string  `form:"DDJL_XMID" json:"DDJL_XMID" binding:"required"`       //项目ID
	DDJL_XMMC             string  `form:"DDJL_XMMC" json:"DDJL_XMMC" binding:"required"`       //项目名称
	DDJL_FBDWID           string  `form:"DDJL_FBDWID" json:"DDJL_FBDWID" binding:"required"`   //分包单位ID
	DDJL_FBDWMC           string  `form:"DDJL_FBDWMC" json:"DDJL_FBDWMC" binding:"required"`   //分包单位名称
	DDJL_YHDD             string  `form:"DDJL_YHDD" json:"DDJL_YHDD" binding:"required"`       //要货地址
	DDJL_YHLXR            string  `form:"DDJL_YHLXR" json:"DDJL_YHLXR" binding:"required"`     //要货联系人
	DDJL_YHLXRDH          string  `form:"DDJL_YHLXRDH" json:"DDJL_YHLXRDH" binding:"required"` //要货联系人电话
	DDJL_WBSMC            string  `form:"DDJL_WBSMC" json:"DDJL_WBSMC" binding:"required"`     //部位名称
	DDJL_GGXH             string  `form:"DDJL_GGXH" json:"DDJL_GGXH" binding:"required"`       //型号
	DDJL_YHMS             string  `form:"DDJL_YHMS" json:"DDJL_YHMS" binding:"required"`       //坍落度
	DDJL_WZID             string  `form:"DDJL_WZID" json:"DDJL_WZID" binding:"required"`       //物资ID
	DDJL_WZMC             string  `form:"DDJL_WZMC" json:"DDJL_WZMC" binding:"required"`       //物资名称
	DDJL_SL               float64 `form:"DDJL_SL" json:"DDJL_SL" binding:"required"`           //数量
	DDJL_SYSJ             string  `form:"DDJL_SYSJ" json:"DDJL_SYSJ" binding:"required"`       //使用时间
	DDJL_DZZT             string  `form:"DDJL_DZZT" json:"DDJL_DZZT" binding:"required"`
	DDJL_SCCJID           string  `form:"DDJL_SCCJID" json:"DDJL_SCCJID" binding:"required"`
	DDJL_XMBH             string  `form:"DDJL_XMBH" json:"DDJL_XMBH" binding:"required"` //项目编号
	DDJL_CREATEUSER       string  `form:"DDJL_CREATEUSER" json:"DDJL_CREATEUSER" binding:"required"`
	DDJL_CREATETIME       string  `form:"DDJL_CREATETIME" json:"DDJL_CREATETIME" binding:"required"`
	DDJL_LASTMODIFIEDUER  string  `form:"DDJL_LASTMODIFIEDUER" json:"DDJL_LASTMODIFIEDUER" binding:"required"`
	DDJL_LASTMODIFIEDTIME string  `form:"DDJL_LASTMODIFIEDTIME" json:"DDJL_LASTMODIFIEDTIME" binding:"required"`
}

type DeliveryList struct {
	Lasttime string `form:"lasttime" json:"lasttime" binding:"required"`
	PageNum  int64  `form:"pageNum" json:"pageNum" binding:""`
	PageSize int64  `form:"pageSize" json:"pageSize" binding:""`
}

type OrderRequest struct {
	Lasttime string `form:"lasttime" json:"lasttime" binding:"required"`
	SCCJID   string `form:"sccjid" json:"sccjid" binding:"required"`
}

// 过磅单请求参数
type GbdRequest struct {
	Lasttime string `form:"lasttime" json:"lasttime" binding:"required"`
	Xmid     string `form:"xmid" json:"xmid" binding:"required"`
}

type PhbRequest struct {
	CfgcGCID string `form:"xfgc_GCID" json:"xfgc_GCID,omitempty" binding:"required"` // 站点ID
}

type LqOrder struct {
	ID       string  `form:"ID" json:"ID"`
	BH       string  `form:"BH" json:"BH"`
	DWMC     string  `form:"DWMC" json:"DWMC"`
	DWBH     string  `form:"DWBH" json:"DWBH"`
	DWID     string  `form:"DWID" json:"DWID"`
	XMBH     string  `form:"XMBH" json:"XMBH"`
	XMMC     string  `form:"XMMC" json:"XMMC"`
	FBDWID   string  `form:"FBDWID" json:"FBDWID"`
	FBDWMC   string  `form:"FBDWMC" json:"FBDWMC"`
	YHDD     string  `form:"YHDD" json:"YHDD"`
	YHLXR    string  `form:"YHLXR" json:"YHLXR"`
	YHLXRDH  string  `form:"YHLXRDH" json:"YHLXRDH"`
	WBSMC    string  `form:"WBSMC" json:"WBSMC"`
	GGXH     string  `form:"GGXH" json:"GGXH"`
	YHMS     string  `form:"YHMS" json:"YHMS"`
	WZID     string  `form:"DDJL_WZID" json:"DDJL_WZID"`
	WZMC     string  `form:"WZMC" json:"WZMC"`
	SCCJID   string  `form:"SCCJID" json:"SCCJID"`
	SL       float64 `form:"SL" json:"SL"`
	SYSJ     string  `form:"SYSJ" json:"SYSJ"`
	LASTTIME string  `form:"LASTTIME" json:"LASTTIME"`
}

// 生产厂家配合比接口请求参数
type SccjPhbRequest struct {
	SCCJID string `form:"sccjid" json:"sccjid" binding:"required"` // 场站ID
}

type ZdfhRequest struct {
}

func (list List) GetMessages() ValidatorMessages {
	return ValidatorMessages{
		"id.required": "Id不能为空",
	}
}

func (thirdOrder ThirdOrder) GetMessages() ValidatorMessages {
	return ValidatorMessages{
		"DDJL_ID.required":               "任务单ID(DDJL_ID)不能为空",
		"DDJL_YHBH.required":             "任务单号(DDJL_YHBH)不能为空",
		"DDJL_DWID.required":             "客户ID(DDJL_DWID)不能为空",
		"DDJL_DWMC.required":             "客户名称(DDJL_DWMC)不能为空",
		"DDJL_XMID.required":             "项目ID(DDJL_XMID)不能为空",
		"DDJL_XMMC.required":             "项目名称(DDJL_XMMC)不能为空",
		"DDJL_FBDWID.required":           "分包单位ID(DDJL_FBDWID)不能为空",
		"DDJL_FBDWMC.required":           "分包单位名称(DDJL_FBDWMC)不能为空",
		"DDJL_YHDD.required":             "收货地址(DDJL_YHDD)不能为空",
		"DDJL_YHLXR.required":            "收货联系人(DDJL_YHLXR)不能为空",
		"DDJL_YHLXRDH.required":          "收获联系人电话(DDJL_YHLXRDH)不能为空",
		"DDJL_WBSMC.required":            "浇筑部位(DDJL_WBSMC)不能为空",
		"DDJL_GGXH.required":             "泵送型号(DDJL_GGXH)不能为空",
		"DDJL_YHMS.required":             "坍落度(DDJL_YHMS)不能为空",
		"DDJL_WZID.required":             "砼品种ID(DDJL_WZID)不能为空",
		"DDJL_WZMC.required":             "砼品种名称(DDJL_WZMC)不能为空",
		"DDJL_SL.required":               "计划方量(DDJL_SL)不能为空",
		"DDJL_SYSJ.required":             "计划时间(DDJL_SYSJ)不能为空",
		"DDJL_DZZT.required":             "任务单状态(DDJL_DZZT)不能为空",
		"DDJL_SCCJID.required":           "生产拌台(DDJL_SCCJID)不能为空",
		"DDJL_XMBH.required":             "项目编号(DDJL_XMBH)不能为空",
		"DDJL_CREATEUSER.required":       "创建人(DDJL_CREATEUSER)不能为空",
		"DDJL_CREATETIME.required":       "创建时间(DDJL_CREATETIME)不能为空",
		"DDJL_LASTMODIFIEDUER.required":  "更新人(DDJL_LASTMODIFIEDUER)不能为空",
		"DDJL_LASTMODIFIEDTIME.required": "更新时间(DDJL_LASTMODIFIEDTIME)不能为空",
	}
}

func (deliveryList DeliveryList) GetMessages() ValidatorMessages {
	return ValidatorMessages{
		"lasttime.required": "查询时间[lasttime]不能为空",
	}
}
